package com.urea.system.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;

/**
 * 终端配置对象 t_terminal_config
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_terminal_config")
@Data
@ToString
public class TerminalConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 终端id */
    @Excel(name = "终端id")
    @ApiModelProperty( "终端id")
    private Long terminalId;

    /** 设备系数 */
    @Excel(name = "设备系数")
    @ApiModelProperty( "设备系数")
    private Long pulse;

    /** 单价（分） */
    @Excel(name = "单价", readConverterExp = "分=")
    @ApiModelProperty( "单价")
    private Long price;

    /** 超时时间（秒） */
    @Excel(name = "超时时间", readConverterExp = "秒=")
    @ApiModelProperty( "超时时间")
    private Long timeout;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty( "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
}
